package com.lengxf.mqtt.config.outbound;

import com.lengxf.mqtt.channel.ChannelName;
import org.springframework.integration.annotation.MessagingGateway;
import org.springframework.integration.mqtt.support.MqttHeaders;
import org.springframework.messaging.handler.annotation.Header;
import org.springframework.stereotype.Component;

@Component
@MessagingGateway(defaultRequestChannel = ChannelName.OUTBOUND)
public interface UserMessagingGateway {

    void publish(@Header(MqttHeaders.TOPIC) String topic, byte[] payload);

}
